/*
 * @Author: DUST
 * @Date: 2023-06-07 11:01:10
 * @LastEditors: DUST
 * @LastEditTime: 2023-06-27 09:54:01
 * @FilePath: \vite-project\src\views\browse\noteList\details.ts
 * @Description: 
 * undefined
 */
import { noteDetailsByID } from "@/api/forceEnd";
import Details from "@/class/pageDetails";
import { RouteLocation } from "vue-router";

export interface NoteDetails {
  index: number;
  id: number;
  title: string;
  author: string;
  description: string;
  content: string;
  star: number;
  browseNum: number;
  upTime: string;
  createTime: string;
  tagList: Array<{ id: number; name: string, color?: string }>;
}

class details extends Details<NoteDetails> {
  constructor(currentRoute: RouteLocation) {
    super({ func: noteDetailsByID, paramsId: currentRoute.params.id as unknown as number, routeMatched: currentRoute.matched })
  }
}

export default details;